﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using StoreTransport.Business.Helper;
using StoreTransport.DAO;

namespace StoreTransport {
    static class Program {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main() {
            CommonHelper.InitCombobox();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            // create database after fix some data in dbml file
            //StoreTransportDataContext context = new StoreTransportDataContext(@"E:\database\StoreTransportDB.mdf");
            //if (context.DatabaseExists())
            //{
            //    context.DeleteDatabase();
            //}
            //context.CreateDatabase();
            Application.Run(new StoreTransport.Presentation.Forms.MDIMainForm());
        }
    }
}
